home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mgr / mgr.zoo / mgrdif1.zoo / demo / Makefile
Encoding:
Makefile  |  1991-03-01  |  1.5 KB  |  57 lines

  1. #                        Copyright (c) 1987 Bellcore
  2. #                            All Rights Reserved
  3. #       Permission is granted to copy or use this program, EXCEPT that it
  4. #       may not be sold for profit, the copyright notice must be reproduced
  5. #       on copies, and credit should be given to Bellcore where it is due.
  6. #       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  7.  
  8. #    $Header: Makefile,v 4.6 88/08/22 10:20:28 sau Exp $
  9. #    $Source: /tmp/mgrsrc/demo/RCS/Makefile,v $
  10.  
  11. CROSSDIR = /net/acae127/home/bammi/atari/cross-gcc
  12. CROSSBIN = $(CROSSDIR)/bin
  13. CC=$(CROSSBIN)/cgcc
  14. AR=$(CROSSBIN)/car
  15. HOSTCC = cc
  16. HOSTCCFLAGS = -O  -I. -Iatari -I../lib
  17. SUBDIR= icon misc ify tests 
  18. INSROOT=/mgr
  19. INSDIR = $(INSROOT)/bin
  20. START=.
  21. MAKE=make
  22. CPIO=demo.cpio
  23.  
  24. all small fast:
  25.     for i in ${SUBDIR}; do \
  26.     (cd $$i; echo "    making demo/$$i";\
  27.       $(MAKE)  OTHERLIB=$(OTHERLIB) INSROOT=${INSROOT} INSDIR=${INSDIR} $@;\
  28.      cd ..);\
  29.     done    
  30.  
  31. install smallinstall:
  32.     for i in ${SUBDIR}; do \
  33.     (cd $$i; echo "    $@ing demo/$$i";\
  34.       $(MAKE)  OTHERLIB=$(OTHERLIB) INSROOT=${INSROOT} INSDIR=${INSDIR} $@;\
  35.      cd ..);\
  36.     done    
  37.  
  38. clean clobber:
  39.     -for i in ${SUBDIR}; do \
  40.     (cd $$i; echo "    $@ing demo/$$i";\
  41.       $(MAKE)  INSROOT=${INSROOT} INSDIR=${INSDIR} $@;\
  42.      cd ..);\
  43.     done    
  44.  
  45. list:
  46.     @echo ${START}/Makefile
  47.     @echo ${START}/README
  48.     @for i in ${SUBDIR}; do \
  49.         echo "${START}/$$i";\
  50.         if [ -d $$i ]; then \
  51.              (cd $$i; $(MAKE) START=${START}/$$i list; cd ..);\
  52.         fi \
  53.     done    
  54.  
  55. cpio:
  56.     make -s list | cpio -ocv > ${CPIO}
  57.